package com.gopay.common.domain.riskcontrol;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

/**
 * 风控键值对配置字典表
 * @RcDicKvpConf.java
 * @author zhuliang
 * @2017年8月29日 下午14:42:48  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "RC_DIC_KVP_CONF")
public class RcDicKvpConf extends BaseEntity{


    private static final long serialVersionUID = 1367817998911077082L;

    /**
     * 主键
     */
    @Id
    @SequenceGenerator(name = "RC_DIC_KVP_CONF_SEQ_GENERATOR", sequenceName = "RC_DIC_KVP_CONF_SEQ", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "RC_DIC_KVP_CONF_SEQ_GENERATOR")
    @Column(name = "ID")
    private Long id;

	/**
	 * 客户ID
	 */
	@Column(name="CUST_ID",length = 10)
	private String custId;
	
	/**
	 * 键值对类型
	 */
	@Column(name="KVP_TYPE", nullable = false,length = 6)
	private String kvpType;
	

	/**
	 * 键值对作用域
	 */
	@Column(name="KVP_SCOPE", nullable = false)
	private String kvpScope;


	/**
	 * 拆单金额
	 */
	@Column(name="VALUE",length = 500)
	private String value;


	/**
	 * 创建人
	 */

	@Column(name="CREATED_OPER_ID")
	private String createdOperId;
	
	/**
	 * 创建时间
	 */
	@Column(name="CREATED_TS")
	private Date createdTs;

	/**
	 * 最后修改人
	 */
	@Column(name="LAST_UPD_OPER_ID")
	private String lastUpdOperId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCustId() {
		return custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	public String getKvpType() {
		return kvpType;
	}

	public void setKvpType(String kvpType) {
		this.kvpType = kvpType;
	}

	public String getKvpScope() {
		return kvpScope;
	}

	public void setKvpScope(String kvpScope) {
		this.kvpScope = kvpScope;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getCreatedOperId() {return createdOperId;}

	public void setCreatedOperId(String createdOperId) {this.createdOperId = createdOperId;}

	public Date getCreatedTs() {
		return createdTs;
	}

	public void setCreatedTs(Date createdTs) {
		this.createdTs = createdTs;
	}

	public String getLastUpdOperId() {
		return lastUpdOperId;
	}

	public void setLastUpdOperId(String lastUpdOperId) {
		this.lastUpdOperId = lastUpdOperId;
	}

	public Date getLastUpdTs() {
		return lastUpdTs;
	}

	public void setLastUpdTs(Date lastUpdTs) {
		this.lastUpdTs = lastUpdTs;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	/**
	 * 最后修改时间
	 */
	@Column(name="LAST_UPD_TS")

	private Date lastUpdTs;

	/**
	 * 乐观锁版本号
	 */
	@Version
	@Column(name = "VERSION", nullable = false, precision = 22, scale = 0)
	private Integer version;

}
